package com.zbkj.crmeb.order.request;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

/**
 * 吉客云订单物流信息
 * @author daigb
 * @date:  2022-04-11 10:43
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class JkyTradeResDTO {

    /**
     * 状态码
     */
    @JsonProperty(value = "code")
    private Integer code;
    
    /**
     * msg
     */
    @JsonProperty(value = "msg")
    private String msg;
    
    /**
     * result
     */
    @JsonProperty(value = "result")
    private Result result;
    
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Result {
        
        /**
         * result
         */
        @JsonProperty(value = "contextId")
        private String contextId;
        
        /**
         * data
         */
        @JsonProperty(value = "data")
        private DataResult dataResult;
        
    }
    
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class DataResult {
        /**
         * goodsStockQuantity
         */
        @JsonProperty(value = "trades")
        private List<Trade> trades;
        
    }
    
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Trade {
        @JsonProperty(value = "shopCode")
        private String shopCode;
        
        @JsonProperty(value = "orderNo")
        private String orderNo;
        
        @JsonProperty(value = "tradeNo")
        private String tradeNo;
        
        @JsonProperty(value = "isDelete")
        private Integer isDelete;
        
        @JsonProperty(value = "mainPostid")
        private String mainPostid;
        
        @JsonProperty(value = "shopName")
        private String shopName;
        
        @JsonProperty(value = "warehouseName")
        private String warehouseName;
        
        @JsonProperty(value = "warehouseCode")
        private String warehouseCode;
        
        @JsonProperty(value = "logisticName")
        private String logisticName;
        
        @JsonProperty(value = "warehouseId")
        private String warehouseId;
        
        @JsonProperty(value = "tradeId")
        private String tradeId;
        
    }

}
